import { request } from "@/utils/service"

/** 部门树 */
export function treeDeptApi() {
  return request({
    url:"/system/dept/tree",
    method: "POST",
  })
}

/** 新增部门 */
export function addDeptApi(data: any) {
  return request({
    url:"/system/dept/insert",
    method: "POST",
    data
  })
}

/** 修改部门 */
export function editDeptApi(data: any) {
  return request({
    url:"/system/dept/update",
    method: "POST",
    data
  })
}
  /** 删除部门 */
export function delDeptApi(data: any) {
  return request({
    url:"/system/dept/delete",
    method: "POST",
    data
  })
}